package com.kaifamiao.N0721;

public class Node4 {
    public static void main(String[] args) {
        int[] arr = {3, 5, 6, 7, 8, 9};

        int index = 2;
        System.arraycopy(arr, index + 1, arr, index, arr.length - index - 1);

        int[] newArr = new int[arr.length - 1];
        System.arraycopy(arr, 0, newArr, 0, newArr.length);

        for (int i = 0; i < newArr.length; i ++){
            System.out.println(newArr[i]);
        }
    }
}
